package com.zjh.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class DrawController {

    @GetMapping("/in")
    @ResponseBody
    public String index() {
        return "index ok";
    }
    /**
     * 转账
     */
    @PostMapping("/draw")
    @ResponseBody
    public String draw() {
        return "转账成功";
    }
    @GetMapping("/index")
    public String indexTemplate() {
        return "index";
    }
    @PostMapping("/hello")
    @ResponseBody
    public String hello() {
        return "hello world";
    }
}
